package com.example.t1;

import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.TextView;


public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals("com.example.t1.BBB")){
            Intent noteList = new Intent(context,ShowActivity.class);
            noteList.putExtras(intent);
            noteList.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(noteList);

        }
    }
}
